<%--
  User: cxs
  Date: 2021/10/3 15:32
  @Version 1.0
  @Motto:放下杂念,只为迎接明天更好的自己
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>我要提问</title>
    <style type="text/css">
        body{
            margin: 0;
            padding: 0;
            width: 100vw;
            height: 100vh;
        }
        .all{
            width: 60%;
            padding-top: 30px;
            box-sizing: border-box;
            margin: 0 auto;
        }
        .all .header{
            width: 100%;
            height: 50px;
            line-height: 50px;
            font-size: 25px;
            font-weight: 600;
            text-align: center;
            letter-spacing: 25px;
            text-indent: 25px;
            font-family: 华文楷体;
        }
        .all .newquest{
            display: block;
            width: 100%;
            text-align: center;
            height: 30px;
            line-height: 30px;
        }
        .form{
            width: 80%;
            margin: 0 auto;
        }
        table{
            width: 50%;
            margin: 0 auto;
        }
        table tr{
            height: 30px;
        }
        table tr th{
            text-align: right;
        }
        table tr td{
            text-align: left;
        }
        table tr td>a:hover{
            color: red;
        }
        input{
            width: 100%;
        }
        textarea{
            width: 100%;
            height: 50px;
            resize: none;
        }
    </style>
</head>
<body>
<div class="all">
    <header class="header">
        <div>我要提问</div>
    </header>
    <a href="${pageContext.request.contextPath}/index.jsp" target="_self" class="newquest">返回首页</a>
    <form method="post" action="${pageContext.request.contextPath}/question/add" class="form">
        <table id="table">
            <tr>
                <th width="30%">问题:</th>
                <td width="70%">
                    <input name="title" type="text" required/>
                </td>
            </tr>
            <tr>
                <th>问题描述:</th>
                <td>
                    <textarea name="defaultDesc" required></textarea>
                </td>
            </tr>
            <tr>
                <th colspan="2" style="text-align: center">
                    <button>保存问题</button>
                </th>
            </tr>
        </table>
    </form>
</div>
</body>
</html>

